#include "../../../../mac/mac_gen.h"

uint16 mac_gen_frm_ctrl_test(uint8 frm_type, uint8 en_sec, uint8 frm_pend,
        uint8 ack, uint8 pan_id_comp, uint8 dest_addr_m, uint8 frm_ver, 
        uint8 src_addr_m)
{
    mac_frm_ctrl_t f;

    f.frm_type        = frm_type;
    f.en_sec         = en_sec;
    f.ack            = ack;
    f.frm_pend        = frm_pend;
    f.pan_id_comp    = pan_id_comp;
    f.dest_addr_m    = dest_addr_m;
    f.frm_ver         = frm_ver;
    f.src_addr_m     = src_addr_m;

    return mac_gen_frm_ctrl(&f);
}

uint8 calc_hdr_len_test(uint8 frm_type, uint8 en_sec, uint8 frm_pend,
        uint8 ack, uint8 pan_id_comp, uint8 dest_addr_m, uint8 frm_ver, 
        uint8 src_addr_m)
{
    mac_frm_ctrl_t f;

    f.frm_type        = frm_type;
    f.en_sec         = en_sec;
    f.ack            = ack;
    f.frm_pend        = frm_pend;
    f.pan_id_comp    = pan_id_comp;
    f.dest_addr_m    = dest_addr_m;
    f.frm_ver         = frm_ver;
    f.src_addr_m     = src_addr_m;

    return calc_hdr_len(&f);
}


